<?php include("include/header.php");
?>
<link href="js/select2/select2.min.css" rel="stylesheet" />
<script src="js/select2/select2.min.js"></script>
<section id="content">
    <section class="hbox stretch">
        <section>
            <section class="vbox">
                <section class="scrollable padder">
                    <div class="m-b-md">
                      <!--<h3 class="m-b-none">当前绑定帐号：<?= $token_name ?></h3>-->
                    </div>
                    <ul class="breadcrumb m-b-md">
                        <li><a href="index.php?c=main"><i class="fa fa-home"></i> 首页</a></li>
                        <li><a href="index.php?c=manage&m=wechat_list"><i class="fa fa-list-ul"></i> 账号管理</a></li>
                        <li class="active">添加账号</li>
                    </ul> 
                    <div class="panel panel-default">
                        <div class="panel-body">

                            <div class="m-b-sm">
                                <iframe id="js_frame" name="js_frame" style="display:none;"></iframe>
                                <form class="form-horizontal" method="post" enctype="multipart/form-data" action="index.php?c=manage&m=wechat_save" target="js_frame" runat="server">
                                    <input type="hidden" name="type_name" id="type_name" value="">
                                    <div class="media_edit_area">
                                        <div id="js_appmsg_editor"><div class="appmsg_editor" style="margin-top: 0px;">
                                                <div class="inner">
                                                    <!-- 账号名称 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">*账号名称</label>
                                                        <span class="frm_input_box"><input type="text" class="form-control"  name="account_name" value=""></span>
                                                    </div>
                                                    <!-- 添加照片 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">*头像照片</label>
                                                        <span class="frm_input_box"><input type="file" class="form-control"  name="head_img" value=""></span>
                                                    </div>
                                                    <!-- 分类 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">*分类</label>
                                                        <select  id="type_select_multiple"  class="form-control" multiple name='type_ids[]'>
                                                            <option value="0">请选择分类</option>
                                                            <?php foreach($type_list as $k=>$v){?>
                                                            <option   value="<?=$v['id']?>"><?=$v['type_name'];?></option>
                                                            <?php }?>
                                                        </select>
                                                    </div>
                                                    <!-- 简介 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">*功能简介</label>
                                                        <span class="frm_input_box">
                                                            <textarea   name="description"  class="form-control"></textarea>
                                                        </span>
                                                    </div>
                                                    <!-- 地址 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">
                                                            <strong class="title">地址</strong>
                                                            <p class="tips l">（选填）</p>
                                                        </label>
                                                        <span class="frm_input_box"><input type="text" class="form-control"  name="address" value=""></span>
                                                    </div>
                                                    <!-- 案例 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">
                                                            <strong class="title">案例</strong>
                                                            <p class="tips l">（选填）</p>
                                                        </label>
                                                        <span class="frm_input_box"><input type="text" class="form-control"  name="case" value="" placeholder="http://"></span>
                                                    </div>
                                                    <!-- 原创直发 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">
                                                            <strong class="title">原创直发</strong>
                                                            <p class="tips l">（选填）</p>
                                                        </label>
                                                        <span class="frm_input_box"><input type="text" class="form-control" name="original_price" value=""></span>
                                                    </div>
                                                    <!-- 合作须知 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">
                                                            <strong class="title">合作须知</strong>
                                                            <p class="tips l">（选填）</p>
                                                        </label>
                                                        <span class="frm_input_box">
                                                            <textarea   name="ps"  class="form-control"></textarea>
                                                        </span>
                                                    </div> 
                                                    <!-- 联系方式 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">
                                                            <strong class="title">联系方式</strong>
                                                            <p class="tips l">（选填）</p>
                                                        </label>
                                                        <span class="frm_input_box">
                                                            <textarea   name="contact"  class="form-control"></textarea>
                                                        </span>
                                                    </div>
                                                    <!-- 显示顺序 -->
                                                    <div class="appmsg_edit_item">
                                                        <label for="" class="frm_label">
                                                            <strong class="title">显示顺序</strong>
                                                            <p class="tips l">（值越小越靠前）</p>
                                                        </label>
                                                        <span class="frm_input_box"><input type="text" class="form-control" name="display_order" value="0"></span>
                                                    </div>
                                                </div>
                                                <i class="arrow arrow_out" style="margin-top: 0px;"></i>
                                                <i class="arrow arrow_in" style="margin-top: 0px;"></i>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="line line-dashed b-b line-lg pull-in"></div>

                                    <div class="m-b-sm text-center">
                                        <button type="submit" class="btn btn-s-sm btn-success">提交</button>
                                        <button type="button" onclick="history.go(-1);" class="btn btn-s-sm btn-default">返回</button>
                                    </div>

                                </form>
                            </div>
                        </div>
                </section>
            </section>
        </section>
    </section>
</section>
<script type="text/javascript">
    $(function(){
$("#type_select_multiple").select2({
    placeholder: "选择类别",
    allowClear: true
});
        
    })
</script>
<?php include("include/footer.php"); ?>